<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="hh"%>
<%@ page import="com.mymail.entity.*"%>
<%@ page import="java.util.*"%>
<jsp:useBean id="user" class="com.mymail.entity.User" scope="session" />
<%
	int index = Integer.parseInt(request.getParameter("id"));
	int currentpage = user.getCurrentpage();
	Mail mail = user.getMail(index);
%>
<div id="mail">

	<hh:mailmenu />

	<div class="mailsubject">
		<h4><%=mail.getSubject()%></h4>
		<p>
			<span>发件人:</span><%=mail.getFrom()%></p>
		<p>
			<span>时&nbsp;&nbsp;间:</span>
			<hh:showtime sendtime="<%=mail.getSendTime() %>" />
		</p>
		<hh:showreceiver receivers="<%=mail.getReceiver() %>" />
	</div>
	<div class="mailcontent">
		<%=mail.getContent()%>
	</div>

	<hh:mailmenu />

</div>
<div id="__mail" index="<%=index %>"></div>